400 |
How to specifiy the symbol that indicates the decimal values while editing a floating point number
public void init() { COM com_Column,com_Editor,com_Items; anytype var_Column,var_Editor,var_Items; ; super(); exg2antt1.BeginUpdate(); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Float")); com_Column = var_Column; com_Column.FormatColumn("len(value) ? (round(value) = value ? value : value format `|,|0`) : ``"); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Numeric(2/*exFloatInteger*/); com_Editor.Option(46/*exEditDecimalSymbol*/,COMVariant::createFromInt(44)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromReal(0.12)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromReal(2.45)); exg2antt1.EndUpdate(); } |
399 |
How can I edit a float number
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Numeric(1/*exFloat*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
398 |
How can I edit a number
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Numeric(-1/*exInteger*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
397 |
How do I limit the length of the text that the user may enter into an edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Option(36/*exEditLimitText*/,COMVariant::createFromInt(1)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
396 |
How can I change the password character
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Option(18/*exEditPassword*/,COMVariant::createFromBoolean(true)); com_Editor.Option(19/*exEditPasswordChar*/,COMVariant::createFromInt(45)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
395 |
How can I add a password field
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Option(18/*exEditPassword*/,COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
394 |
How can I align the text to the right, in my edit control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Option(10/*exEditRight*/,COMVariant::createFromBoolean(true)); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
393 |
How can I add a simple edit or text box to my column
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); } |
392 |
How can I change the type of the editor
public void init() { COM com_Column,com_Editor,com_Items; anytype var_Column,var_Editor,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(0)); com_Items.AddItem(COMVariant::createFromInt(1)); com_Items.AddItem(COMVariant::createFromInt(2)); var_Column = COM::createFromObject(exg2antt1.Columns()).Item("Edit"); com_Column = var_Column; var_Editor = COM::createFromObject(com_Column).Editor(); com_Editor = var_Editor; com_Editor.EditType(4/*SpinType*/); } |
391 |
How can I add a border arround the editor
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Appearance(1/*FlatApp*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Edit"); com_Items.AddItem("Edit"); com_Items.AddItem("Edit"); } |
390 |
How do I assign an editor for the entire column
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Edit"); com_Items.AddItem("Edit"); com_Items.AddItem("Edit"); } |
389 |
How do I check if a cell has an editor assigned
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; var_Editor = COM::createFromObject(com_Items.CellEditor(com_Items.AddItem("Edit -> ReadOnly "),COMVariant::createFromInt(0))); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Items.AddItem("ReadOnly"); com_Items.AddItem("ReadOnly"); com_Items.AddItem(com_Items.HasCellEditor(com_Items.FocusItem(),COMVariant::createFromInt(0))); } |
388 |
How do I delete or remove the editor for a sppecified cell
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; var_Editor = COM::createFromObject(com_Items.CellEditor(com_Items.AddItem("Edit -> ReadOnly "),COMVariant::createFromInt(0))); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Items.AddItem("ReadOnly"); com_Items.AddItem("ReadOnly"); com_Items.DeleteCellEditor(com_Items.FocusItem(),COMVariant::createFromInt(0)); } |
387 |
How do I hide or disable the editor assigned to a single cell
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Column"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Edit"); com_Items.CellEditorVisible(com_Items.AddItem("ReadOnly"),COMVariant::createFromInt(0),false); com_Items.AddItem("Edit"); } |
386 |
How do I assign or change the editor for a particular cell
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; ; super(); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("ReadOnly"); var_Editor = COM::createFromObject(com_Items.CellEditor(com_Items.AddItem("Edit"),COMVariant::createFromInt(0))); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Items.AddItem("ReadOnly"); } |
385 |
How do I get the caption of the cell as it is displayed on the control
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; int h; ; super(); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem(COMVariant::createFromInt(3)); var_Editor = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor = var_Editor; com_Editor.EditType(6/*CheckListType*/); com_Editor.AddItem(1,"One"); com_Editor.AddItem(2,"Two"); com_Items.AddItem(COMVariant::createFromStr(com_Items.CellCaption(h,COMVariant::createFromInt(0)))); com_Items.AddItem(com_Items.CellValue(h,COMVariant::createFromInt(0))); } |
384 |
How do I prevent scrolling the control's data after user does the sort
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; ; super(); exg2antt1.EnsureOnSort(false); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 3"); com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); exg2antt1.PutItems(exg2antt1.GetItems(COMVariant::createFromInt(0))); exg2antt1.PutItems(exg2antt1.GetItems(COMVariant::createFromInt(0))); exg2antt1.PutItems(exg2antt1.GetItems(COMVariant::createFromInt(0))); var_Column = COM::createFromObject(exg2antt1.Columns()).Item(COMVariant::createFromInt(0)); com_Column = var_Column; com_Column.SortOrder(1/*SortAscending*/); } |
383 |
How do I ensure that the focused item is visible, after the user does the sort
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; ; super(); exg2antt1.EnsureOnSort(true); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 3"); com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); var_Column = COM::createFromObject(exg2antt1.Columns()).Item(COMVariant::createFromInt(0)); com_Column = var_Column; com_Column.SortOrder(1/*SortAscending*/); } |
382 |
How can I disable selecting multiple items by dragging
public void init() { ; super(); exg2antt1.SelectByDrag(false); exg2antt1.SingleSel(true); } |
381 |
Is there any function to change the default value for options of the editors
public void init() { COM com_Editor,com_Items,com_Items1; anytype var_Editor,var_Items,var_Items1; ; super(); exg2antt1.DefaultEditorOption(18/*exEditPassword*/,COMVariant::createFromBoolean(true)); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Pass1"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Pass2"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem(COMVariant::createFromInt(1)),COMVariant::createFromInt(1),COMVariant::createFromInt(2)); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellValue(com_Items1.AddItem(COMVariant::createFromInt(1)),COMVariant::createFromInt(1),COMVariant::createFromInt(2)); } |
380 |
How do I close the editor, or stop editing a cell
|
379 |
Is there any function to highlight or mark the cells that have a tooltip using my picture or icon
public void init() { COM com_Items,com_Items1; anytype var_Items,var_Items1; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.MarkTooltipCells(true); exg2antt1.MarkTooltipCellsImage(1); exg2antt1.Columns().Add(""); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellToolTip(com_Items.AddItem("This is a cell with a tooltip"),COMVariant::createFromInt(0),"This is a bit of text that is shown when the cursor hovers the cell."); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellToolTip(com_Items1.AddItem("This is a cell without a tooltip"),COMVariant::createFromInt(0),""); } |
378 |
Is there any function to highlight or mark the cells that have a tooltip
public void init() { COM com_Items,com_Items1; anytype var_Items,var_Items1; ; super(); exg2antt1.MarkTooltipCells(true); exg2antt1.TooltipCellsColor(WinApi::RGB2int(255,0,0)); exg2antt1.Columns().Add(""); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellToolTip(com_Items.AddItem("This is a cell with a tooltip"),COMVariant::createFromInt(0),"This is a bit of text that is shown when the cursor hovers the cell."); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellToolTip(com_Items1.AddItem("This is a cell without a tooltip"),COMVariant::createFromInt(0),""); } |
377 |
Is there any function to highlight or mark the cells that have a tooltip
public void init() { COM com_Items,com_Items1; anytype var_Items,var_Items1; ; super(); exg2antt1.MarkTooltipCells(true); exg2antt1.Columns().Add(""); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellToolTip(com_Items.AddItem("This is a cell with a tooltip"),COMVariant::createFromInt(0),"This is a bit of text that is shown when the cursor hovers the cell."); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellToolTip(com_Items1.AddItem("This is a cell without a tooltip"),COMVariant::createFromInt(0),""); } |
376 |
How do I find the window's handled when an editor is running
|
375 |
How can I start editing the cell
public void init() { ; super(); exg2antt1.AutoEdit(false); exg2antt1.Edit(); } |
374 |
Is there any option to edit the control's data manually, so the editor doesn't show up as soon as the cell is focused
public void init() { COM com_Editor,com_Items,com_Items1; anytype var_Editor,var_Items,var_Items1; ; super(); exg2antt1.MarkSearchColumn(false); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit1"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit2"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem(COMVariant::createFromInt(1)),COMVariant::createFromInt(1),COMVariant::createFromInt(2)); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellValue(com_Items1.AddItem(COMVariant::createFromInt(3)),COMVariant::createFromInt(1),COMVariant::createFromInt(4)); exg2antt1.AutoEdit(false); } |
373 |
How can change the background color for selected editor
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.Background(17/*exSelectInPlace*/,WinApi::RGB2int(255,0,0)); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Editor"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); exg2antt1.Items().AddItem(COMVariant::createFromInt(20)); } |
372 |
How can change the visual appearance for the spin control, using your EBN files
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.VisualAppearance().Add(2,"c:\\exontrol\\images\\pushed.ebn"); exg2antt1.Background(22/*exSpinUpButtonUp*/,0x1000000); exg2antt1.Background(23/*exSpinUpButtonDown*/,0x2000000); exg2antt1.Background(24/*exSpinDownButtonUp*/,0x1000000); exg2antt1.Background(25/*exSpinDownButtonDown*/,0x2000000); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Editor"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(4/*SpinType*/); exg2antt1.Items().AddItem(COMVariant::createFromInt(20)); } |
371 |
How can change the visual appearance for the slider or track bar, using your EBN files
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.Background(16/*exSliderThumb*/,0x1000000); exg2antt1.Background(15/*exSliderRange*/,WinApi::RGB2int(210,210,210)); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Editor"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(20/*SliderType*/); exg2antt1.Items().AddItem(COMVariant::createFromInt(20)); } |
370 |
How can change the visual appearance for the button that are visible inside the editors, using your EBN files
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.VisualAppearance().Add(2,"c:\\exontrol\\images\\pushed.ebn"); exg2antt1.Background(7/*exButtonDown*/,0x1000000); exg2antt1.Background(6/*exButtonUp*/,0x2000000); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Editor")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.AddButton(COMVariant::createFromInt(1)); exg2antt1.Items().AddItem(COMVariant::createFromDate(str2Date("1/1/2002",213))); } |
369 |
How can change the visual appearance for the button that shows the drop down editors, using your EBN files
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.VisualAppearance().Add(2,"c:\\exontrol\\images\\pushed.ebn"); exg2antt1.Background(4/*exDropDownButtonUp*/,0x1000000); exg2antt1.Background(5/*exDropDownButtonDown*/,0x2000000); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Editor"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); exg2antt1.Items().AddItem(COMVariant::createFromDate(str2Date("1/1/2002",213))); } |
368 |
How can I find the column that gets the focus
public void init() { COM com_Editor,com_Items,com_Items1,com_Items2; anytype var_Editor,var_Items,var_Items1,var_Items2; ; super(); exg2antt1.MarkSearchColumn(false); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit1"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit2"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem(COMVariant::createFromInt(1)),COMVariant::createFromInt(1),COMVariant::createFromInt(2)); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellValue(com_Items1.AddItem(COMVariant::createFromInt(3)),COMVariant::createFromInt(1),COMVariant::createFromInt(4)); var_Items2 = exg2antt1.Items(); com_Items2 = var_Items2; com_Items2.ItemDivider(com_Items2.AddItem(exg2antt1.FocusColumnIndex()),0); } |
367 |
How do I make the control read-only, but still can see the values in a drop down list
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.DrawGridLines(-1/*exAllLines*/); exg2antt1.ReadOnly(1/*exLocked*/); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Editor"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); exg2antt1.Items().AddItem(COMVariant::createFromDate(str2Date("1/1/2003",213))); } |
366 |
How do I make the control read-only
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.ReadOnly(-1/*exReadOnly*/); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Editor")).Editor(); com_Editor = var_Editor; com_Editor.EditType(6/*CheckListType*/); com_Editor.AddItem(1,"One"); com_Editor.AddItem(2,"Two"); exg2antt1.Items().AddItem(COMVariant::createFromInt(1)); } |
365 |
How do I change the control's border, using your EBN files
public void init() { ; super(); exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.Appearance(16777216); } |
364 |
Can I change the default border of the tooltip, using your EBN files
public void init() { ; super(); exg2antt1.ToolTipDelay(1); exg2antt1.ToolTipWidth(364); exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.Background(64/*exToolTipAppearance*/,0x1000000); COM::createFromVariant(exg2antt1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column"); } |
363 |
Can I change the background color for the tooltip
public void init() { ; super(); exg2antt1.ToolTipDelay(1); exg2antt1.ToolTipWidth(364); exg2antt1.Background(65/*exToolTipBackColor*/,WinApi::RGB2int(255,0,0)); COM::createFromVariant(exg2antt1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column"); } |
362 |
Does the tooltip support HTML format
|
361 |
Can I change the forecolor for the tooltip
public void init() { ; super(); exg2antt1.ToolTipDelay(1); exg2antt1.ToolTipWidth(364); exg2antt1.Background(66/*exToolTipForeColor*/,WinApi::RGB2int(255,0,0)); COM::createFromVariant(exg2antt1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column"); } |
360 |
Can I change the foreground color for the tooltip
|
359 |
How can I merge cells
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.DrawGridLines(-1/*exAllLines*/); exg2antt1.MarkSearchColumn(false); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); exg2antt1.Columns().Add("C3"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("this cell merges the first two columns"); com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(1)); h = com_Items.AddItem(); com_Items.CellValue(h,COMVariant::createFromInt(1),"this cell merges the last two columns"); com_Items.CellMerge(h,COMVariant::createFromInt(1),COMVariant::createFromInt(2)); h = com_Items.AddItem("this cell merges the all three columns"); com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(1)); com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(2)); h = com_Items.AddItem("this draws a divider item"); com_Items.ItemDivider(h,0); } |
358 |
How can I merge cells
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.TreeColumnIndex(-1); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); exg2antt1.Columns().Add("C3"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem("This is bit of text merges all cells in the item (divider)"); com_Items.ItemDivider(h,0); com_Items.ItemDividerLine(h,0/*EmptyLine*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); h = com_Items.AddItem("Cell 2"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines. (cellmerge)"); com_Items.CellMerge(h,COMVariant::createFromInt(1),COMVariant::createFromInt(2)); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); } |
357 |
How can I specify the width for a splited cell
public void init() { COM com_Items; COMVariant s,s1; anytype var_Items; int h; ; super(); exg2antt1.DrawGridLines(-2/*exRowLines*/); exg2antt1.Columns().Add("Single Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Split 1"); s = com_Items.SplitCell(h,COMVariant::createFromInt(0)); com_Items.CellWidth(,s,64); com_Items.CellValue(,s,"Split 2"); s1 = com_Items.SplitCell(,s); com_Items.CellValue(,s1,"Split 3"); com_Items.CellWidth(,s1,64); } |
356 |
How can I split a cell in three parts
public void init() { COM com_Items; COMVariant s,s1; anytype var_Items; int h; ; super(); exg2antt1.DrawGridLines(-2/*exRowLines*/); exg2antt1.Columns().Add("Single Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Split 1"); s = com_Items.SplitCell(h,COMVariant::createFromInt(0)); com_Items.CellValue(,s,"Split 2"); s1 = com_Items.SplitCell(,s); com_Items.CellValue(,s1,"Split 3"); } |
355 |
How can I add a button aligned to right
public void init() { COM com_Items; COMVariant s; anytype var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.Columns().Add("Single Column"); exg2antt1.ShowFocusRect(false); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.ItemDivider(com_Items.AddItem("This is a bit of text being displayed on the entire item"),0); s = com_Items.SplitCell(com_Items.AddItem("Split Cell 1.1"),COMVariant::createFromInt(0)); com_Items.CellValue(,s,"Split Cell <img>1</img>"); com_Items.CellValueFormat(,s,1/*exHTML*/); com_Items.CellHAlignment(,s,1/*CenterAlignment*/); com_Items.CellHasButton(,s,16777216); com_Items.CellWidth(,s,84); } |
354 |
How can I split a cell
public void init() { COM com_Items; COMVariant s; anytype var_Items; str var_s; ; super(); exg2antt1.DrawGridLines(-2/*exRowLines*/); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.Columns().Add("Single Column"); exg2antt1.ShowFocusRect(false); var_Items = exg2antt1.Items(); com_Items = var_Items; s = com_Items.SplitCell(com_Items.AddItem("Split Cell 1.1"),COMVariant::createFromInt(0)); com_Items.CellValue(,s,"Split Cell <img>1</img>"); com_Items.CellValueFormat(,s,1/*exHTML*/); com_Items.CellHAlignment(,s,1/*CenterAlignment*/); com_Items.CellBackColor(,s,0x1000000); com_Items.CellWidth(,s,84); } |
353 |
Can I select an item giving its general position
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectPos(COMVariant::createFromInt(1)); } |
352 |
How can I change the color for separator / dividers items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.GridLineColor(WinApi::RGB2int(255,0,0)); exg2antt1.MarkSearchColumn(false); exg2antt1.TreeColumnIndex(-1); exg2antt1.ScrollBySingleLine(false); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem(); com_Items.ItemDivider(h,0); com_Items.ItemDividerLine(h,4/*DoubleDotLine*/); com_Items.ItemDividerLineAlignment(h,1/*DividerCenter*/); com_Items.ItemHeight(h,6); com_Items.SelectableItem(h,false); h = com_Items.AddItem("Cell 2"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); } |
351 |
How can I add separator - dividers items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.TreeColumnIndex(-1); exg2antt1.ScrollBySingleLine(false); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem(); com_Items.ItemDivider(h,0); com_Items.ItemDividerLine(h,4/*DoubleDotLine*/); com_Items.ItemDividerLineAlignment(h,1/*DividerCenter*/); com_Items.ItemHeight(h,6); com_Items.SelectableItem(h,false); h = com_Items.AddItem("Cell 2"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); } |
350 |
Can I change the style of the line being displayed by a divider item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.TreeColumnIndex(-1); exg2antt1.ScrollBySingleLine(false); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem("This is bit of text that's displayed on the entire item, divider."); com_Items.ItemDivider(h,0); com_Items.ItemDividerLine(h,4/*DoubleDotLine*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); com_Items.ItemHeight(h,24); } |
349 |
Can I remove the line being displayed by a divider item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.TreeColumnIndex(-1); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem("This is bit of text that's displayed on the entire item, divider."); com_Items.ItemDivider(h,0); com_Items.ItemDividerLine(h,0/*EmptyLine*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); } |
348 |
How can I display a divider item, merging all cells
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.TreeColumnIndex(-1); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem("This is bit of text that's displayed on the entire item, divider."); com_Items.ItemDivider(h,0); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); } |
347 |
How can I fix or lock items
public void init() { COM com_Items; anytype var_Items; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(0/*exTop*/,1); com_Items.CellValue(com_Items.LockedItem(0/*exTop*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control."); com_Items.ItemBackColor(com_Items.LockedItem(0/*exTop*/,0),WinApi::RGB2int(196,196,186)); com_Items.LockedItemCount(2/*exBottom*/,2); com_Items.CellValue(com_Items.LockedItem(2/*exBottom*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control."); com_Items.ItemBackColor(com_Items.LockedItem(2/*exBottom*/,0),WinApi::RGB2int(196,196,186)); com_Items.CellValue(com_Items.LockedItem(2/*exBottom*/,1),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control."); com_Items.ItemBackColor(com_Items.LockedItem(2/*exBottom*/,1),WinApi::RGB2int(186,186,186)); } |
346 |
How can I fix or lock an item on the bottom side of the control
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(2/*exBottom*/,1); com_Items.CellValue(com_Items.LockedItem(2/*exBottom*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the bottom side of the control."); h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); } |
345 |
How can I fix or lock an item on the top of the control
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(0/*exTop*/,1); com_Items.CellValue(com_Items.LockedItem(0/*exTop*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control."); h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); } |
344 |
Is there any function to limit the height of the items when I display it using multiple lines
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.ScrollBySingleLine(true); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); com_Items.ItemMaxHeight(h,48); } |
343 |
Why I cannot center my cells in the column
public void init() { ; super(); exg2antt1.TreeColumnIndex(-1); exg2antt1.DrawGridLines(-2/*exRowLines*/); COM::createFromVariant(exg2antt1.Columns().Add("Default")).Alignment(1/*CenterAlignment*/); exg2antt1.Items().AddItem("item 1"); exg2antt1.Items().AddItem("item 2"); exg2antt1.Items().AddItem("item 3"); } |
342 |
How can I align the cell to the left, center or to the right
public void init() { COM com_Items; anytype var_Items; ; super(); exg2antt1.TreeColumnIndex(-1); exg2antt1.DrawGridLines(-2/*exRowLines*/); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellHAlignment(com_Items.AddItem("left"),COMVariant::createFromInt(0),0/*LeftAlignment*/); com_Items.CellHAlignment(com_Items.AddItem("center"),COMVariant::createFromInt(0),1/*CenterAlignment*/); com_Items.CellHAlignment(com_Items.AddItem("right"),COMVariant::createFromInt(0),2/*RightAlignment*/); } |
341 |
How do I apply HTML format to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s,var_s1; ; super(); exg2antt1.TreeColumnIndex(-1); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); exg2antt1.HTMLPicture("p2","c:\\exontrol\\images\\auction.gif"); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("The following item shows some of the HTML format supported:"); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); var_s1 = "text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img>text <b>bold</b>, <i>italic</i>, <u>underline</u"; var_s1 = var_s1 + ">, <s>strikeout</s>, ...<dotline>and so on... <a>anchor</a> or <a2>hyperlink</a><fgcolor=FF0000>fgcolor</fgcolor> or <bgcolor=00"; var_s1 = var_s1 + "FF00>bgcolor</bgcolor> "; h = com_Items.AddItem(COMVariant::createFromStr(var_s1)); com_Items.CellValueFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); com_Items.CellSingleLine(h,COMVariant::createFromInt(0),false); } |
340 |
How can I change the font for a cell
public void init() { COM com_Items; anytype var_Items; ; super(); exg2antt1.Columns().Add("Default"); exg2antt1.Items().AddItem("std font"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValueFormat(com_Items.AddItem("this <font tahoma;12>is a bit of text with</font> a different font"),COMVariant::createFromInt(0),1/*exHTML*/); } |
339 |
How can I change the font for a cell
public void init() { COM com_Items,com_Items1,com_f; anytype f,var_Items,var_Items1; ; super(); exg2antt1.DefaultItemHeight(22); exg2antt1.Columns().Add("Default"); exg2antt1.Items().AddItem("default font"); f = COM::createFromObject(new stdole.StdFont()); com_f = f; f.Name("Tahoma"); f.Size(12); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellFont(com_Items.AddItem("new font"),COMVariant::createFromInt(0),f); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellFont(com_Items1.AddItem("new font"),COMVariant::createFromInt(0),exg2antt1.ExecuteTemplate("Dim f;f = CreateObject(`StdFont`);{;Name = `Tahoma`;Size = 14;};")); } |
338 |
How can I change the font for entire item
public void init() { COM com_Items,com_f; anytype f,var_Items; ; super(); exg2antt1.Columns().Add("Default"); exg2antt1.Items().AddItem("default font"); f = COM::createFromObject(new stdole.StdFont()); com_f = f; f.Name("Tahoma"); f.Size(12); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.ItemFont(com_Items.AddItem("new font"),f); } |
337 |
How do I vertically align a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.DrawGridLines(-2/*exRowLines*/); COM::createFromVariant(exg2antt1.Columns().Add("MultipleLine")).Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); exg2antt1.Columns().Add("VAlign"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("This is a bit of long text that should break the line"); com_Items.CellValue(h,COMVariant::createFromInt(1),"top"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),0/*exTop*/); h = com_Items.AddItem("This is a bit of long text that should break the line"); com_Items.CellValue(h,COMVariant::createFromInt(1),"middle"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),1/*exMiddle*/); h = com_Items.AddItem("This is a bit of long text that should break the line"); com_Items.CellValue(h,COMVariant::createFromInt(1),"bottom"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),2/*exBottom*/); } |
336 |
How can I change the position of an item
public void init() { COM com_Items; anytype var_Items; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); com_Items.ItemPosition(com_Items.AddItem("Item 3"),0); } |
335 |
How do I find an item based on a path
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.ItemData(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(1234)); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.FindPath("Root 1\\Child 1"),true); } |
334 |
How do I find an item based on my extra data
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.ItemData(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(1234)); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.FindItemData(COMVariant::createFromInt(1234)),true); } |
333 |
How do I find an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.FindItem("Child 2",COMVariant::createFromInt(0)),true); } |
332 |
How can I insert a hyperlink or an anchor element
public void init() { COM com_Items,com_Items1; anytype var_Items,var_Items1; ; super(); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValueFormat(com_Items.AddItem("Just an <a1>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellValueFormat(com_Items1.AddItem("Just another <a2>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/); } |
331 |
How do I find the index of the item based on its handle
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.ItemByIndex(com_Items.ItemToIndex(h)),true); } |
330 |
How do I find the handle of the item based on its index
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.ItemByIndex(1),true); } |
329 |
How can I find the cell being clicked in a radio group
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.SelBackColor(WinApi::RGB2int(255,255,128)); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); exg2antt1.Columns().Add("C3"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234); com_Items.CellValue(h,COMVariant::createFromInt(2),"Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234); com_Items.CellState(h,COMVariant::createFromInt(1),1); com_Items.CellBold(,com_Items.CellChecked(1234),true); } |
328 |
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later
public void init() { COM com_Items; anytype var_Items; ; super(); exg2antt1.LinesAtRoot(-1/*exLinesAtRoot*/); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.ItemHasChildren(com_Items.AddItem("parent item with no child items"),true); com_Items.AddItem("next item"); } |
327 |
Can I let the user to resize at runtime the specified item
public void init() { COM com_Items; anytype var_Items; ; super(); exg2antt1.ScrollBySingleLine(true); exg2antt1.DrawGridLines(-2/*exRowLines*/); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.ItemAllowSizing(com_Items.AddItem("resizable item"),true); com_Items.AddItem("not resizable item"); } |
326 |
How can I change the size ( width, height ) of the picture
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exg2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.CellPictureWidth(h,COMVariant::createFromInt(0),24); com_Items.CellPictureHeight(h,COMVariant::createFromInt(0),24); com_Items.ItemHeight(h,32); h = com_Items.AddItem("Root 2"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exg2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.ItemHeight(h,48); } |
325 |
How can I find the number or the count of selected items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.SingleSel(false); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(com_Items.ItemChild(h),true); com_Items.SelectItem(com_Items.NextSiblingItem(com_Items.ItemChild(h)),true); com_Items.AddItem(com_Items.SelectCount()); } |
324 |
How do I unselect an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(h,false); } |
323 |
How do I find the selected item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(h,true); com_Items.ItemBold(com_Items.SelectedItem(0),true); } |
322 |
How do I un select all items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.SingleSel(false); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.UnselectAll(); } |
321 |
How do I select multiple items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.SingleSel(false); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(com_Items.ItemChild(h),true); com_Items.SelectItem(com_Items.NextSiblingItem(com_Items.ItemChild(h)),true); } |
320 |
How do I select all items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.SingleSel(false); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectAll(); } |
319 |
How do I select an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(h,true); } |
318 |
Can I display a button with some picture or icon inside
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBHJJGHA5MIwAEIe4AAAFhwbiEQEsTigwEowjEZGA7jkdIsfkBQkUjLZQLclLZlk8rlRlOBlmEwl5wmhwPc3nCFPaFSCFnk8nqQTaQolEoabpCbUtKUtNWFPp67qVTXb"; var_s = var_s + "Fq1VqzQjjQKA7aFfaDbsRFHbbKBFsVpcrljjlsjlrtwIrlkrlPZwtbbtbleEieEleEqeE3eCFMuFODwsTwtbwxz7qz7tb7x+UfeXAOZzWbzmdz2f0Gh0Wj0ml02n1Gp1"; var_s = var_s + "Wr1mt12v2Gx2Wz2m122318MAAhfIEAMMf4AFm6hPFIAI4L/BIcJCwUDBQYICYeKjwMSEYYRDaMJCcJCxURFRQYExMMDAOJAIQEBofMS4JCyUiRBQKCggLAJEChQIXEAx"; var_s = var_s + "EEWBADAIxHAwHgyBATBEAEQoIg4EoXC4DB4nmQQDESAYRAwLBdFoEphAAEweCQeoQDCIRCFWLBXh8bB1FAVZBgMMBhkULodFAVgpkK4JUC6ZZbFabZbjYaIXCYJI7lKb"; var_s = var_s + "pdjwTJ1EqHYIHI7IjhKewOCYXAYHCCoJhaaAmgyYBygWCJICKMAoRqI5Hg8FQMEoEhlDyURBAQO4Gk4GocAAcxDgeEAUFQLwWlCVRqlYCJbB8eBtAqdgBl6UQJgEaBgE"; var_s = var_s + "2G5AhAYBBgGT4EA4Y5FguFYrFADAIkAIBBAKMBliUD5mluXR6nWbBZhGKgAEGYo4goDgcDYf4MG+XZeEMBh0BiVAvmeDwhkOe4OhcPAiHQe4wjASZ8BKLxwGQQB4mOSA"; var_s = var_s + "HDKSBvkARQWmsDAhBeIoTGyAgEGgGoAgICo0HoEABggIETkKDApCQAIvGoCJKDABAQkRVIGhkUgQCGBYdiaegBAUEpeDAIgEiCOooAEBwJBCUBKC8DoHCoTQmBmBoQEG"; var_s = var_s + "BwZHYEBhgAAYpAIYBGiYcoUAgKgpjyUAtDWKpglMCori8RICksAZcBSfIngAEpGFuIIDg4CIQFMOgyEsFJgEyAYSEgQAsDKNRMgsAAKCw54ACCcAwBOCBhAqO5ODkFhL"; var_s = var_s + "AgISGh4W5zDoNw1DOdBQkQExVHQURGHkWpsDEPAig0DQ3EoDQYG+OwXkoeBoAMFwLCSaQFgwBA6kCIxLg0YhoC+e54jSbBVB6SoYAiAx+Dqf56A+VRPE0Mggj+OgOjwK"; var_s = var_s + "A+gCawtCkQJcmcFQJCeVgLEWTAiGAVxSFWIJ6kSGBhCQXwvFocIui0EwMAyAwDGocABAabYNHAFYBmmbQqnaGMSIXRQAAAaD8UgSxBhmFqCIcAwAlBJB0AYETDRoBEAG"; var_s = var_s + "BEfAzhICiFODYMwmRoCOBkNEUgw3AgMFCIMW4tQPDpBe4IUYVl8jwAMCAOIABHiuAoGsVgKQQjZGoL8FYnBzDBAOKwII+QtBWFkM0KwZQsC3HCJgCAkwpiJBYGUNgVBP"; var_s = var_s + "BsBKJYJgDRQAlEuFINo4BgjLBgJsLgmxKhAFuLkGQCQNjwFsME3Y5AMhEAiBQCoZwOByA6AQUAZgsBCB+AUVwUQ5jWAyAQTwwAYgdG4NMPkkQuCgGeDUKAtXEBhBAIAT"; var_s = var_s + "odgXAHDEAgEY4A4ADDkK0YQGABAADEB4OAwABA2FWA8UoHQuCAGGNUdA4BCAXDcLgIRmQAA7ICA="; exg2antt1.HTMLPicture("p1",COMVariant::createFromStr(var_s)); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1)," Button <img>p1</img> "); com_Items.CellValueFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true); com_Items.ItemHeight(h,48); } |
317 |
Can I display a button with some picture or icon inside
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1)," Button <img>1</img> "); com_Items.CellValueFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true); } |
316 |
Can I display a button with some icon inside
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1)," <img>1</img> "); com_Items.CellValueFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true); } |
315 |
How can I assign multiple icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); exg2antt1.HTMLPicture("p2","c:\\exontrol\\images\\auction.gif"); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("text <img>p1</img> another picture <img>p2</img> and so on"); com_Items.CellValueFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exg2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))); com_Items.ItemHeight(h,48); com_Items.AddItem("Root 2"); } |
314 |
How can I assign an icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exg2antt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.ItemHeight(h,48); com_Items.AddItem("Root 2"); } |
313 |
How can I assign multiple icons/pictures to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root <img>1</img> 1, <img>2</img>, ... and so on "); com_Items.CellValueFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); } |
312 |
How can I assign multiple icons/pictures to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellImages(h,COMVariant::createFromInt(0),"1,2,3"); } |
311 |
How can I assign an icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellImage(h,COMVariant::createFromInt(0),1); com_Items.CellImage(com_Items.InsertItem(h,,"Child 1"),COMVariant::createFromInt(0),2); com_Items.CellImage(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(0),3); com_Items.ExpandItem(h,true); } |
310 |
How can I get the handle of an item based on the handle of the cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.CellItem(com_Items.ItemCell(h,COMVariant::createFromInt(0))),true); } |
309 |
How can I display a button inside the item or cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1)," Button 1 "); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true); h = com_Items.AddItem("Cell 2"); com_Items.CellValue(h,COMVariant::createFromInt(1)," Button 2 "); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),1/*CenterAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); } |
308 |
How can I change the state of a radio button
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.SelBackColor(WinApi::RGB2int(255,255,128)); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); exg2antt1.Columns().Add("C3"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234); com_Items.CellValue(h,COMVariant::createFromInt(2),"Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234); com_Items.CellState(h,COMVariant::createFromInt(1),1); } |
307 |
How can I assign a radio button to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.SelBackColor(WinApi::RGB2int(255,255,128)); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); exg2antt1.Columns().Add("C3"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234); com_Items.CellValue(h,COMVariant::createFromInt(2),"Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234); com_Items.CellState(h,COMVariant::createFromInt(1),1); } |
306 |
How can I change the state of a checkbox
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"Check Box"); com_Items.CellHasCheckBox(h,COMVariant::createFromInt(1),true); com_Items.CellState(h,COMVariant::createFromInt(1),1); } |
305 |
How can I assign a checkbox to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"Check Box"); com_Items.CellHasCheckBox(h,COMVariant::createFromInt(1),true); } |
304 |
How can I display an item or a cell on multiple lines
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.ScrollBySingleLine(true); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines"); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); } |
303 |
How can I assign a tooltip to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"tooltip"); com_Items.CellToolTip(h,COMVariant::createFromInt(1),"This is bit of text that's shown when the user hovers the cell"); } |
302 |
How can I associate an extra data to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"Cell 2"); com_Items.CellData(h,COMVariant::createFromInt(1),"your extra data"); } |
301 |
How do I enable or disable a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"Cell 2"); com_Items.CellEnabled(h,COMVariant::createFromInt(1),false); } |